package model

type ArticleComment struct {
	CommentId         int    `json:"commentId"`
	ArticleId         int    `json:"articleId"`
	UserId            int    `json:"userId"`
	Content           string `json:"content"`
	Like              int    `json:"like"`
	DisLike           int    `json:"disLike"`
	Status            int    `json:"status"`
	CreateTime        string `json:"createTime"`
	CommentParentId   int    `json:"commentParentId"`
	RootParentId      int    `json:"rootParentId"`
	ParentDisplayName string `json:"parentDisplayName"`
}

type ArticleCommentView struct {
	ArticleComment
	FilePath    string `json:"filePath"`
	DisplayName string `json:"displayName"`
	Level       int    `json:"level"`
	IsLiked     bool   `json:"isLiked"`
	IsDisLiked  bool   `json:"isDisLiked"`
}

type ArticleCommentTreeList struct {
	ArticleCommentView
	Children []*ArticleCommentTreeList `json:"children"`
}

type ArticleCommentManage struct {
	ArticleComment
	FilePath          string `json:"filePath"`
	DisplayName       string `json:"displayName"`
	ArticleTitle      string `json:"articleTitle"`
	AuthorDisplayName string `json:"authorDisplayName"`
}
